home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d19
/
zlabp_11.arc
/
GIFT40B.ARC
/
PCBTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-10-29
|
1KB
|
56 lines
@echo off
if exist pcbpass.txt del pcbpass.txt
if exist pcbfail.txt del pcbfail.txt
if %@ext[%1]==gif goto gif
if %@ext[%1]==zip goto zip
goto crc
:gif
if %2 == test goto gift
giftest %1 /C:GIFTEST.CNF > PCBPASS.TXT
type pcbpass.txt >> gifpass.log
if errorlevel == 25 goto badgif
if errorlevel == 20 goto badgif
if errorlevel == 10 goto end
if errorlevel == 1 goto badgif
goto end
:gift
echo Testing GIF file...
giftest %1 > PCBPASS.TXT
if errorlevel == 25 goto badgif
if errorlevel == 20 goto badgif
if errorlevel == 10 goto end
if errorlevel == 1 goto badgif
goto end
:badgif
beep
ren PCBPASS.TXT PCBFAIL.TXT
goto end
:zip
ptest %1 ptest.cfg
if %2 == test goto end
if exist pcbfail.txt goto end
:crc
if exist pcbpass.txt del pcbpass.txt
proecho 2 ~Adding %@name[%1] to CRC database...
zdcsfc %1 %2 %3
goto end
:end
:asta
pcbdesc /d %1 %3
if errorlevel == 1 goto skipit
proecho 2 ~~Found internal description for %1...
proecho 2 ~Imported to BBS...
:skipit
if exist PCBPASS.TXT type PCBPASS.TXT >> PCBPASS.LOG
if exist PCBFAIL.TXT type PCBFAIL.TXT >> PCBFAIL.LOG
if exist PCBFAIL.TXT move %1 h:\hold /q
if exist %3 type %3 >> f:\pcb\desc